home *** CD-ROM | disk | FTP | other *** search
- Path: ccshst01.cs.uoguelph.ca!ttsuchid
- From: ttsuchid@uoguelph.ca (Toby Tsuchida)
- Newsgroups: comp.lang.c
- Subject: c help request
- Date: 13 Jan 1996 02:59:01 GMT
- Organization: University of Guelph
- Message-ID: <4d775l$h93@ccshst05.cs.uoguelph.ca>
- NNTP-Posting-Host: ccshst01.cs.uoguelph.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
-
- I need some debugging help.
-
- I'm using the c compiler that comes with HP-UX 9.x (9.1 I think)
-
- (in chkmail.c, mm_list and mm_lsub are dummy prototype declarations.)
-
- I get the below errors when I compile.
- -------------------------------
- ~/CCS/toys/chkmail > make
- cc -Aa -I../imap-4/c-client `cat ../imap-4/c-client/CFLAGS` -c chkmail.c
- cc: "chkmail.c", line 132: error 1711: Inconsistent parameter list
- declaration for "mm_list".
- cc: "chkmail.c", line 144: error 1711: Inconsistent parameter list
- declaration for "mm_lsub".
- *** Error code 1
-
- Stop
- --------------------------------
-
- Here all the mm_list references to see if you can detect a pattern:
- --------------------------------
- ~/CCS/toys/imap-4/c-client > grep -n mm_list *.h
- mail.h:81:/* Bits for mm_list() and mm_lsub() */
- mail.h:791:void mm_list (); <-------------- this looks suspect but
- I haven't take a close look
- yet.
- ~/CCS/toys/imap-4/c-client > grep -n mm_list *.c
- dummy.c:256: * contents to search before calling mm_list()
- dummy.c:291: mm_list (stream,delimiter,name,attributes);
- imap4.c:2059: else mm_list (stream,delimiter,t,i);
- imap4.c:2065: mm_list (stream,NIL,t,NIL);
- mh.c:233: mm_list (stream,NIL,"#MHINBOX",LATT_NOINFERIORS);
- mh.c:291: if (pmatch_full (name,pat,'/')) mm_list
- (stream,'/',name,NIL);
- mtest.c:535:void mm_list (stream,delimiter,mailbox,attributes)
- news.c:188: mm_list (stream,'.',name,LATT_NOSELECT);
- news.c:190: else mm_list (stream,'.',name,NIL);
- nntp.c:185: if (pmatch_full (name,pattern,'.')) mm_list
- (stream,'.',name,NIL
- );
- nntp.c:189: mm_list (stream,'.',name,LATT_NOSELECT);
- pop3.c:174: mm_list (stream,NIL,tmp,LATT_NOINFERIORS);
- pop3.c:179: mm_list (stream,NIL,tmp,LATT_NOINFERIORS);
-
- ---------------------------------------
-
- ~/CCS/toys/chkmail > grep mm_list chkmail.c (Shows the following:)
-
- void mm_list (MAILSTREAM *stream,char delimiter,char *name,long attributes)
-
- (I don't know what is inconsistent.)
- (The above line actually looks like this in chkmail.c:)
-
- void mm_list (MAILSTREAM *stream,char delimiter,char *name,long attributes)
- {
- /* This is a dummy routine */
- }
-
- ---------------------
-
- Can anyone detect an inconsistency that the linker is complaining about?
-
- --
- .. Toby
-